<div id="information">
<br /><br />
<?php
$sel_group=mysql_query('SELECT * FROM groups WHERE id="'.$_GET['id'].'" AND from_who="'.$_SESSION['username'].'"');
$row_group=mysql_fetch_assoc($sel_group);

include "ins_gr.php";
?>
	<p class='proffile_group_box'><a class="activate_modal regi" name='modal_window4'><strong>Профил на групата</strong></a></p>
	<div id='mask' class='close_modal'></div>
	<div id='modal_window4' class='modal_window' style='font-family: Verdana,Helvetica,Arial,sans-serif;font-size: 13px;'>
	<h3>Профил на групата</h3><p style='font-family: Verdana,Helvetica,Arial,sans-serif;font-size: 13px;'>
	<table border='0px' width='400px' style='font-family: Verdana,Helvetica,Arial,sans-serif;font-size: 13px;'>
		<tr>
			<td width='150px'>Съдадено от:</td><td><?php echo $row_group['from_who'];?></td>
		</tr>
		<tr>
			<td width='150px'>Тема на групата:</td><td><?php echo $row_group['title_group'];?></td>
		</tr>
		<tr>
			<td width='150px'>Участници:</td><td><?php echo $row_group['names'];?></td>
		</tr>
		<tr>
			<td width='150px'>Раздел:</td><td><?php echo $row_group['tutorial'];?></td>
		</tr>
		<tr>
			<td width='150px'>Създадено през:</td><td><?php echo date('Y-m-d / G:i:s', $row_group['date']);?></td>
		</tr></p>
	</table>
	</div>
	<div id='go'>
		<?php
     	$sel_u = mysql_query('SELECT * FROM users WHERE username="'.$_SESSION['username'].'"');
	    $row_u = mysql_fetch_assoc($sel_u);
	 
	 $select_art='SELECT * FROM articles WHERE to_tutorial = "'.$row_u['teacher_to'].'"';
	 $results_art=mysql_query($select_art);
	 
	 $select_art1='SELECT * FROM articles WHERE to_tutorial = "'.$row_u['teacher_to'].'"';
	 $results_art1=mysql_query($select_art1);
	 
     while($row_probno = mysql_fetch_assoc($results_art1)){
	    $id2 = $row_probno['article_id'];
	 }
	 ?>
	<form method='post' action='<?php echo 'includes/post_home.php?id='.$id2.'&amp;id_gr='.$_GET['id'].''; ?>'>
		<table class='userTable' style='overflow: auto;'>
		<tr style='background-color: #b7b6b6; height: 40px;'>
			<td style="text-align: center; font-weight: bold;">Номер</td>
			<td style="text-align: center; font-weight: bold;">Урок</td>
			<td style="text-align: center; font-weight: bold;">Добавен от</td>
			<td style="text-align: center; font-weight: bold;">Опции</td>
		</tr>
	 <?php
	 $i=1;
	while($row_art=mysql_fetch_assoc($results_art)){
	   $id=$row_art['article_id'];
	   
	   $username=$row_art['article_name'];
	   $name=$row_art['from_who'];
	   
?>
	<tr style='height: 30px; background-color: #ede7e7;'>
	<td style="text-align: center;">
	<?php
	echo $i;
	?>
	</td>
	<td style='text-indent: 10px;'>
	  <?php echo $username;?>
	  </td>
	  <td style='text-indent: 10px;'>
	  <?php echo $name;?>
	  </td>
	  <td style='text-align: center;'>
	  <input type='radio' value="<?php echo $username; ?>" name="choose" style='background-color: #ede7e7;' />
	  </td>
	  </tr>
	  <?php
	  $i++;
	 }
	 
?>
<tr style='height: 30px; background-color: #b7b6b6;'><td></td><td></td><td></td>
	<td style='text-align: center;'>
		<input type='submit' name='submit' value='Готово'>
	</td>
</tr>
</table>
</form>
</div>
</div>